ListBox.LastIndex

Read-Only
The number of the last row added with the AddRow, AddFolder, or InsertRow method.

Syntax

LastIndex as Integer